import stoneRequest from "../index";

export function uploadAvatarRequest(avatar: any) {
  return stoneRequest.post({
    url: '/upload/avatar',
    data: avatar,
    headers: {
      'Content-Type': 'multipart/form-data',
    }
  })
}

export function updateUserInfo(nickname: string, link: string, signature: string) {
  return stoneRequest.patch({
    url: '/users/updateUserInfo',
    data: {
      nickname,
      link,
      signature
      }
  })
}